home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / devices / timer.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  1KB  |  65 lines

  1. #ifndef DEVICES_TIMER_H
  2. #define DEVICES_TIMER_H 1
  3. /*
  4. ** timer.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for timer.h
  17. */
  18. #ifndef EClockValPtr
  19. #define EClockValPtr ADDRESS
  20. #endif
  21. #ifndef timerequestPtr
  22. #define timerequestPtr ADDRESS
  23. #endif
  24. #ifndef timevalPtr
  25. #define timevalPtr ADDRESS
  26. #endif
  27. /*
  28. ** End of StructPointer defines for timer.h
  29. */
  30.           
  31. #include <exec/types.h>
  32. #include <exec/io.h>
  33.  
  34.  
  35. /* unit defintions */
  36. #define UNIT_MICROHZ    0
  37. #define UNIT_VBLANK    1
  38. #define UNIT_ECLOCK    2
  39. #define UNIT_WAITUNTIL    3
  40. #define    UNIT_WAITECLOCK    4
  41.  
  42. #define TIMERNAME    "timer.device"
  43.  
  44. STRUCT timeval  
  45.     LONGINT tv_secs 
  46.     LONGINT tv_micro 
  47. END STRUCT 
  48.  
  49. STRUCT EClockVal  
  50.     LONGINT ev_hi 
  51.     LONGINT ev_lo 
  52. END STRUCT 
  53.  
  54. STRUCT timerequest  
  55.     IORequest tr_node 
  56.     timeval tr_time 
  57. END STRUCT 
  58.  
  59. /* IO_COMMAND to use for adding a timer */
  60. #define TR_ADDREQUEST    CMD_NONSTD
  61. #define TR_GETSYSTIME    (CMD_NONSTD+1)
  62. #define TR_SETSYSTIME    (CMD_NONSTD+2)
  63.  
  64. #endif /* DEVICES_TIMER_H */
  65.